//
//  SEGMyManager.h
//  ExcellentHome
//
//  Created by 刘山 on 16/11/19.
//  Copyright © 2016年 陈区. All rights reserved.
//
#import "SEGUgcListModel.h"
#import "SEGJobMessageModel.h"
#import "SEGAddressModel.h"
#import "SEGDictionaryInfoModel.h"
#import "SEGMyProfileLogicModel.h"
#import <Foundation/Foundation.h>
#import "SEGPersonalCompleteInfoModel.h"

@interface SEGMyManager : NSObject
///  个人主页组数据 年份
@property (nonatomic, strong)NSMutableArray *yearsStringArray;



/**
 * 用户保存线上实物领奖地址
 * @author Wendy
 * @param finished 回调结果
 */
- (void)requestUpdateAddrByWinnerId:(NSString *)winnerId
                         reciveName:(NSString *)reciveName
                          reciveTel:(NSString *)reciveTel
                         reciveAddr:(NSString *)reciveAddr
                           finished:(SEGNetworkReponse)finished;

//获取我的头像文件名称
+ (NSString*)myPortraitFileNameWithUserID:(NSString*)userID;

//根据文件名获取媒体文件完整路径
+ (NSString*)mideaFilePathForFileName:(NSString*)aFileName;

//获取媒体文件存放路径
+ (NSString*)mideaFilePath;

//获取document路径
+ (NSString*)documentPath;


///  6.获取个人配送地址
- (void)requestMyAddressFinished:(SEGNetworkReponse)finished;
@property (nonatomic, strong) NSArray<SEGAddressModel*>* seg_segaddressmodel;

/// 获取职业列表 数据源
@property (nonatomic, strong) NSArray<SEGJobMessageModel*>* seg_segjobmessagemodel;

///  数据字典查询
@property (nonatomic, strong) SEGDictionaryInfoModel* seg_segdictionaryinfomodel;
@property (nonatomic, strong) SEGPersonalCompleteInfoModel* seg_segcompleteinfomodel;



#pragma mark - 接口请求方法
///  4.设置默认配送地址
///
///  @param AddressId 配送地址Id
- (void)requestSetDefaultAddressByid:(NSString*)AddressId Finished:(SEGNetworkReponse)finished;

///  7.添加个人配送地址
///
///  @param address  配送地址
- (void)requestaddAddressByAddress:(NSString*)address Finished:(SEGNetworkReponse)finished;

///  8.新版-添加个人配送地址
///
///  @param address      配送地址
///  @param contactName  联系人
///  @param contactPhone 联系电话
///  @param isDefault    默认是否地址 0不默认，1默认
- (void)requestNewAddAddressByaddress:(NSString*)address
                          contactName:(NSString*)contactName
                         contactPhone:(NSString*)contactPhone
                            isDefault:(NSString*)isDefault
                             Finished:(SEGNetworkReponse)finished;

///  9.删除个人配送地址
///
///  @param AddressId 配送地址Id
- (void)requestDeleteAddressByid:(NSString*)AddressId Finished:(SEGNetworkReponse)finished;

///  3.修改个人配送地址
///
///  @param AddressId    地址id
///  @param address      配送地址
///  @param contactName  联系人
///  @param contactPhone 联系电话
///  @param isDefault    默认是否地址 0不默认，1默认
- (void)requestUpdateAddressByid:(NSString*)AddressId
                         address:(NSString*)address
                     contactName:(NSString*)contactName
                    contactPhone:(NSString*)contactPhone
                       isDefault:(NSString*)isDefault
                        Finished:(SEGNetworkReponse)finished;

/// 获取职业列表
- (void)requestUserJobMessageFinished:(SEGNetworkReponse)finished;

///  修改个人信息
///
///  @param nickname 用户昵称
///  @param ico      头像
///  @param name     姓名
///  @param age      年龄
///  @param sex      性别
///  @param job      职业
///  @param desc     个人描述  如不需要修改 传nil
///  @param identity 身份证号
- (void)requestUpdateProperyInfoBynickname:(NSString*)nickname
                                       ico:(NSString*)ico
                                      name:(NSString*)name
                                       age:(NSString*)age
                                       sex:(NSString*)sex
                                       job:(NSString*)job
                                      desc:(NSString*)desc
                                  identity:(NSString*)identity
                                  Finished:(SEGNetworkReponse)finished;

///  数据字典查询
///
///  @param code     字典编码
- (void)requestDictionaryInfoByCode:(NSString*)code
                           Finished:(SEGNetworkReponse)finished;

//根据用户ID,获取用户信息
-(void)requestGetUserInfoByUserId:(NSString *)userId
                         Finished:(SEGNetworkReponse)finished;

//个人主页 新版- 我发布的UGC
-(void)requestNewQueryUGCByUserId:(NSString *)userId
                           pageNo:(NSString *)pageNo
                        pageLimit:(NSString *)pageLimit
                         Finished:(SEGNetworkReponse)finished;



//获取积分
-(void)requestgetCompleteInformationFinished:(SEGNetworkReponse)finished;

///// 更新个人列表数据
///// @param objID objID
///// @param objType objType
//- (void)removeOriginDataWithObjID:(NSString *)objID objType:(NSString *)objType;

@property (nonatomic, strong) NSMutableArray *originDataArray; //原始数据列表

@end
